package com.googlecode.sparda.commons.swing;

public abstract class AbstractColumnNameToMethod<E> implements ColumnNameToMethod<E> {
	
	private final String columnName;

	public AbstractColumnNameToMethod(String columnName) {
		this.columnName = columnName;
	}
	
	/* (non-Javadoc)
	 * @see com.googlecode.sparda.commons.swing.ColumnNameToMethod#getValue(E)
	 */
	@Override
	public Object getValue(E e) {
		return null;
	}
	
	/* (non-Javadoc)
	 * @see com.googlecode.sparda.commons.swing.ColumnNameToMethod#setValue(E, T)
	 */
	@Override
	public void setValue(E e, Object value) {
		/* Override this method*/
	}
	
	/* (non-Javadoc)
	 * @see com.googlecode.sparda.commons.swing.ColumnNameToMethod#getColumnName()
	 */
	@Override
	public String getColumnName() {
		return this.columnName;
	}
	
}
